import {Component} from '@angular/core';
import {GnLoginUser, GnSiteInfo} from 'geminis-ng';
import {Router} from '@angular/router';

@Component({
  selector: 'portal-profile',
  templateUrl: './profile.component.html'
})
export class PortalProfileComponent {

  constructor(public loginUser: GnLoginUser,
              private siteInfo: GnSiteInfo,
              private route: Router) {
  }

  logout(): void {
    this.route.navigateByUrl(this.siteInfo.logoutUrl);
  }

}
